# app/models/api_model/__init__.py
from flask_restx import Api

def init_api_models(api: Api):
    """初始化所有API模型"""
    #from app.models.api_model.common_models import register_common_models
    from app.models.api_model.user_api_model import register_user_models
    # from app.models.api_model.topic_models import register_topic_models
    
    # 注册各类模型并合并
    #common = register_common_models(api)
    users = register_user_models(api)
    #topics = register_topic_models(api)
    
    # 返回统一模型字典
    #return {**common, **users, **topics}
    return {**users}